#pragma once

#include <riscv/thread-size.h>
#include <asm-generic/preempt_types.h>
#include <asm-generic/tif.h>

struct thread_info
{
    unsigned long flags;
    preempt_count_t preempt;
    void *kernel_sp; /* Kernel stack pointer */
    void *user_sp;	 /* User stack pointer */

    unsigned long ra;
    unsigned long sp;	 /* Kernel mode stack */
    unsigned long s[12]; /* s[0]: frame pointer */

    unsigned long cpu; /* Current CPU */
};
